function plot_fig2(err1,err2,N1,N2,mu,x_max)
m1 = size(err1,2);
m2 = size(err2,2);
k1 = -x_max/N1 * mu;
k2 = -x_max/N2 * mu;
plot(0:k1:k1*(m1-1),err1,'-');hold on;xlim([0 6.5]);ylim([0 1.6]);
plot(0:k2:k2*(m2-1),err2,'-');